import * as Config from "@/config";
import {post} from "@/api/httpRequest";

const BASE_URI = Config.HTTP_SERVER;

/**
 * 上传案例文件
 * @param data
 * @param success
 * @param error
 * @param final
 * @returns {*}
 */
export function uploadFileAPI(data, success, error, final) {
    let configs = {headers: {"Content-Type": "multipart/form-data"}};
    post(BASE_URI + "/uploadFile", data, success, error, final, configs);
}
